class CreateGames < ActiveRecord::Migration
  def self.up
    create_table :games do |t|
      t.integer :id
	  t.integer :active_player_id
	  t.string  :contract_suit
	  t.integer :contract_value
	  t.integer :contract_double_or_redouble
	  t.integer :contract_player
	  t.boolean :contract_final
	  t.integer :passes
	  t.integer :current_trick_id
	  t.intege :tricks_played
      t.timestamps
    end
  end

  def self.down
    drop_table :games
  end
end
